#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>

typedef int SLDataType;
typedef struct SeqList
{
	SLDataType* a;
	size_t size;
	size_t capacity;
}SeqList;

void SeqListInit(SeqList* ps);
void SeqListDestory(SeqList* ps);

void SeqListPrint(SeqList* ps);
void SeqListPushBack(SeqList* ps, SLDataType x);
void SeqListPushFont(SeqList* ps, SLDataType x);
void SeqListPopBack(SeqList* ps);
void SeqListPopFont(SeqList* ps);

void SeqListInsert(SeqList* ps, size_t pos, SLDataType x);
void SeqListErase(SeqList* ps, size_t pos);
int SeqListFind(SeqList* ps, SLDataType x);
void SeqListModify(SeqList* ps, int pos, SLDataType x);